import App from './App'
import uView from '@/uni_modules/uview-ui'

// #ifndef VUE3
import Vue from 'vue'
import store from '@/store';

Vue.config.productionTip = false

Vue.use(uView);
// 默认单位配置
uni.$u.config.unit = 'rpx'

App.mpType = 'app'
const app = new Vue({
	store,
  ...App
})

// 引入请求封装，将app参数传递到配置中
require('./config/request.js')(app)
// 引入登录验证
import utils from 'common/utils.js'
Vue.use(utils, app)

// 将vuex中的state放入每个组件中
let vuexStore = require("@/store/$u.mixin.js");
Vue.mixin(vuexStore);

app.$mount()
// #endif







// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif